<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        
        <header class="bar bar-nav fs-header-small">
          <a href="${ctx.host}/profile-online-agent" class="icon icon-left pull-left"></a>
          <h1 class="title">折扣学员</h1>
        </header>
        
        <div class="content">
        
            <div class="list-block info-list-item" style="margin: 0.5rem 0;">
            <ul>
              <c:forEach var="order" items="${orders}">
                <li>
                  <div class="item-content item-inner">
                    <div class="item-title">姓名：${order.user.name}，折扣金额：${order.discount(persist.agentDiscount1(order.discountCode))/100}元，奖励：${order.commission/100}元</div>
                  </div>
                </li>
              </c:forEach>
            </ul>

          </div>
          
          <!-- End banner -->
        </div>
        <!-- End Content -->
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
   
  </body>
</html>